package com.ligure.decorator;

/**
 * Created by Administrator on 2017/2/28.
 * 装饰模式允许我们在不改变现有对象的情况下，动态地向其添加行为。
 * 装饰器基类实现了与组件相同的接口，并将组件对象作为其成员变量。
 */
public abstract class ShapeDecorator implements Shap {
    protected Shap shap;
    public ShapeDecorator(Shap shap) {
        this.shap = shap;
    }
    @Override
    public void draw() {
        shap.draw();
        System.out.println("装饰点啥呢");
    }
}
